﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Kaidou.Model;
using Kaidou.Persister;
using Kaidou.Util;
using Kaidou.Bll;
using System.Collections.Generic;
using System.Globalization;
using System.Text;


public partial class seal_seal_report_represen_conf : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginModel loginModel = (LoginModel)Session["loginModel"];

        if (loginModel == null)
        {
            Response.Redirect("../login.aspx");
        }


        if (!loginModel.isJimukyoku() && !loginModel.isOperator())
        {
            Response.Redirect("../menu.aspx");
            
        }

        if (loginModel.isKumiaiin() && sessioncontrol.control())
        {
            Response.Redirect("../control.aspx");
        }


    }

    protected void login_confirm(object sender, EventArgs e)
    {
        Report rpt = (Report)Session["report"];
        TRN_ReportManager manager = new TRN_ReportManager();
        manager.insertReportRepresen(rpt, (LoginModel)Session["loginModel"]);
        Response.Redirect("seal_report_represen.aspx");

    }
}
